home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 4
/
Amiga Tools 4.iso
/
grafix
/
3d
/
dust
/
dusthelp2
/
if
< prev
next >
Wrap
Text File
|
1996-02-26
|
560b
|
12 lines
COMMAND IF
-----------------------------------------------------------------
Purpose: Simple but usefull if-construct
Usage: IF(<expression>,<command>[,<alternative command>])
Examples: if(1<2,echo(true),echo(false))
if(xmin>t,.xmin=t)
if(a,echo(a isnt 0),echo(a is 0))
Notes: 1. Only simple expressions containing
"<=", ">=", "<", ">", "=" are allowed ("==" is the same as "=")
2. Writing in C you would say:
if(<expression>) <command>; else <alternative command>;